<!doctype html>
<html lang="{{ LANGUAGE_CODE }}"{% if LANGUAGE_BIDI %} dir="rtl"{% endif %}>
{% load pages_tags mezzanine_tags i18n future staticfiles %}

<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="keywords" content="{% block meta_keywords %}{% endblock %}">
    <meta name="description" content="{% block meta_description %}{% endblock %}">
    <title>{% if settings.SITE_TITLE %}{{ settings.SITE_TITLE }}{% endif %} |
        {% block meta_title %}{% endblock %}</title>
    <link rel="shortcut icon" href="{% static "favicon.ico" %}">

    {% compress css %}
        <link rel="stylesheet" href="{% static 'mezzanine/css/smoothness/jquery-ui-1.9.1.custom.min.css' %}">
        <link rel="stylesheet" href="{% static 'web_v1/assets/css/reset.css' %}">
        <link rel="stylesheet" href="{% static 'web_v1/assets/css/modern.css' %}">
        <link rel="stylesheet" href="{% static 'main.css' %}">
        {% block extra_css %}{% endblock %}
    {% endcompress %}

    {% compress js %}
        <script src="{% static 'web_v1/assets/js/lib/jquery.1.10.1.min.js' %}"></script>
        <script src="{% static 'mezzanine/js/jquery-ui-1.9.1.custom.min.js' %}"></script>
        <script src="{% static 'web_v1/assets/js/lib/bootstrap-dropdown.js' %}"></script>
        <script src="{% static 'commons/ga.js' %}"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $("#nav-profile .dropdown-toggle").dropdown();
            });
        </script>
    {% endcompress %}

    <!--[if lt IE 9]>
<script src="{% static "js/html5shiv.js" %}"></script>
<script src="{% static "js/respond.min.js" %}"></script>
<![endif]-->

    {% block extra_head %}{% endblock %}
</head>

<body id="{% block body_id %}body{% endblock %}">

<header id="C_header">
    <div id="C_headerBody">
        <div id="C_logo">
            <a href="{% url 'home' %}">
                <img src="{% static 'web_v1/assets/images/logo.jpg' %}"
                     width="auto" height="45"
                     alt="{% if settings.SITE_TITLE %}{{ settings.SITE_TITLE }}{% endif %}"/>
            </a>
        </div>
        {% include 'accounts/includes/user.html' %}
        <div id="C_globalNav">
            {% page_menu 'commons/includes/nav_menu.html' %}
        </div>

    </div>

</header>

{% block outermain %}
    <div class="lt" id="C_page">

        <div id="C_pagePreBody">
            {% block mainheader %}{% endblock %}
        </div>

        {% nevercache %}
            {% if messages %}
                <div class="messages">
                    {% for message in messages %}
                        <div class="chapter-alert line clearfix {{ message.tags }}">
                            <div class="unit size3of5">
                                <div class="note-header">{{ message }}</div>
                                <span class="note"></span>
                            </div>
                        </div>
                    {% endfor %}
                </div>
            {% endif %}
        {% endnevercache %}

        <div id="C_pageBody">
            {% block main %}{% endblock %}
        </div>

    </div>
{% endblock %}

<footer>
    <p>2014 悦龄网 All rights reserved. 海南悦龄网络科技有限公司 版权所有</p>

    <p>琼ICP备14002217号</p>
</footer>

{% block extra_js %}{% endblock %}
</body>
</html>
